// 执行命令  ts-node arrayType.ts
// 数组
let arr:string[] = ["1","2"];
let arr2:Array<string> = ["1","2"]
let arr3:(number | string)[]
arr3 = [1, '2']

// interface是接口
interface Arrobj{
  name:string,
  age:number
}
let arr4:Arrobj[]=[{name:'name',age:22}]


console.log('array type: ', arr4)